home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / il / ilVkHistGraph.z / ilVkHistGraph
Encoding:
Text File  |  2002-10-03  |  12.2 KB  |  331 lines

  1.  
  2.  
  3.  
  4. iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))   IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll   iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh - displays graph of histogram for an image
  10.  
  11.  
  12. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  13.      ilVkComponent
  14.  
  15.  
  16. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  17.      #include <il/ilVkHistGraph.h>
  18.  
  19.  
  20. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.      This component displays a graph of the histogram of the current image.
  22.      The current image is specified with sssseeeettttIIIImmmmaaaaggggeeee(). One channel at a time is
  23.      displayed. The graph color and title can be set.  It uses iiiillllIIIImmmmggggSSSSttttaaaatttt to
  24.      compute the histogram.
  25.  
  26. CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
  27.      CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr
  28.  
  29.           ilVkHistGraph( const char *, Widget )
  30.           ilVkHistGraph( const char * )
  31.  
  32.      GGGGeeeetttt////sssseeeetttt mmmmeeeetttthhhhooooddddssss
  33.  
  34.           void autoScale(Widget widget, XtPointer arg)    _p_r_o_t_e_c_t_e_d
  35.           void create(Widget parent)
  36.           const char * className()
  37.           void findPeak(Widget widget, XtPointer arg)    _p_r_o_t_e_c_t_e_d
  38.           const char* getColor()
  39.           int getComponent()
  40.           ilRoi* getRoi()
  41.           void getRoiOffset(int& xoffset, int& yoffset)
  42.           virtual void graphExpose(Widget widget, XtPointer arg) _p_r_o_t_e_c_t_e_d
  43.           virtual void graphInput(Widget widget, XtPointer arg)  _p_r_o_t_e_c_t_e_d
  44.           virtual void graphResized(Widget widget, XtPointer arg)     _p_r_o_t_e_c_t_e_d
  45.           virtual void ilUpdateWidget() _p_r_o_t_e_c_t_e_d
  46.           void selectComponent(Widget widget, XtPointer arg)    _p_r_o_t_e_c_t_e_d
  47.           void setColor(const char* colorName)
  48.           void setComponent(int c)
  49.           void setPercentage(Widget widget, parent arg)    _p_r_o_t_e_c_t_e_d
  50.           void setRoi(ilRoi* roi, int xoffset, int yoffset)
  51.           void stepComponent(Widget widget, parent arg)    _p_r_o_t_e_c_t_e_d
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))   IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll   iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))
  71.  
  72.  
  73.  
  74. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  75.      iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh(((())))
  76.  
  77.           ilVkHistGraph( const char * )
  78.           ilVkHistGraph( const char *, Widget )
  79.  
  80.  
  81.           Both versions of the constructor take the name of the object and
  82.           assign it to the base widget of the component (see VkComponent).
  83.           The second version of the constructor takes a pointer to the parent
  84.           widget and creates the component as a child.
  85.  
  86.      aaaauuuuttttooooSSSSccccaaaalllleeee(((())))
  87.  
  88.           void autoScale( Widget parent, XtPointer arg)
  89.  
  90.  
  91.           Automatically scale the histogram to fit the graph area.
  92.  
  93.      ccccllllaaaassssssssNNNNaaaammmmeeee(((())))
  94.  
  95.           const char * className()
  96.  
  97.  
  98.           Returns the class name of the component.
  99.  
  100.      ccccrrrreeeeaaaatttteeee(((())))
  101.  
  102.           void create( Widget parent )
  103.  
  104.  
  105.           Creates the component as a child of _p_a_r_e_n_t.
  106.  
  107.      ffffiiiinnnnddddPPPPeeeeaaaakkkk(((())))
  108.  
  109.           void findPeak(Widget widget, XtPointer arg)
  110.  
  111.  
  112.           Highlight the first peak component value in the histogram.
  113.  
  114.      ggggeeeettttCCCCoooolllloooorrrr(((())))
  115.  
  116.           const char* getColor()
  117.  
  118.  
  119.           Returns the name of the drawing color.
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))   IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll   iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))
  137.  
  138.  
  139.  
  140.      ggggeeeettttCCCCoooommmmppppoooonnnneeeennnntttt(((())))
  141.  
  142.           int getComponent()
  143.  
  144.  
  145.           Returns the currently viewed component (or channel).
  146.  
  147.      ggggeeeettttRRRRooooiiii(((())))
  148.  
  149.           ilRoi* getRoi()
  150.  
  151.  
  152.           Returns the current ROI for the histogram graph.
  153.  
  154.      ggggeeeettttRRRRooooiiiiOOOOffffffffsssseeeetttt(((())))
  155.  
  156.           void getRoiOffset(int& xoffset, int& yoffset)
  157.  
  158.  
  159.           Returns the offset of the ROI in the source image in _x_o_f_f_s_e_t and
  160.           _y_o_f_f_s_e_t.
  161.  
  162.      ggggrrrraaaapppphhhhEEEExxxxppppoooosssseeeedddd(((())))
  163.  
  164.           virtual void graphExposed( Widget, XtPointer )    _p_r_o_t_e_c_t_e_d
  165.  
  166.  
  167.           This virtual method is called by the expose callback when the
  168.           component is exposed. The contents of the drawing area are redrawn
  169.           by calling the redraw method on ilDisplay.
  170.  
  171.      ggggrrrraaaapppphhhhIIIInnnnppppuuuutttt(((())))
  172.  
  173.           virtual void graphInput( Widget, XtPointer ) _p_r_o_t_e_c_t_e_d
  174.  
  175.  
  176.           This virtual method is called by the input callback when X input
  177.           events are received. Since this component statically displays an
  178.           ilImage, no actions are performed in response to input events.
  179.           However, a derived class may choose to manipulate the image within
  180.           the ilDisplay object in response to input events. See also
  181.           iiiillllVVVVkkkkVVVViiiieeeewwwweeeerrrr(3).
  182.  
  183.      ggggrrrraaaapppphhhhRRRReeeessssiiiizzzzeeeedddd(((())))
  184.  
  185.           virtual void graphResized( Widget, XtPointer )    _p_r_o_t_e_c_t_e_d
  186.  
  187.  
  188.           This virtual method is called by the resize callback when the
  189.           component is resized. It updates the current size of the drawing
  190.           area.
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))   IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll   iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))
  203.  
  204.  
  205.  
  206.      iiiillllUUUUppppddddaaaatttteeeeWWWWiiiiddddggggeeeetttt(((())))
  207.  
  208.           virtual void ilUpdateWidget() _p_r_o_t_e_c_t_e_d
  209.  
  210.  
  211.           This virtual function is called by sssseeeettttIIIImmmmaaaaggggeeee(), sssseeeettttCCCCoooolllloooorrrr(), and
  212.           sssseeeettttTTTTiiiittttlllleeee(). It causes the component to update its GUI elements. The
  213.           histogram for the currently selected channel is displayed in the
  214.           drawing area using the current color.
  215.  
  216.      sssseeeelllleeeeccccttttCCCCoooommmmppppoooonnnneeeennnntttt(((())))
  217.  
  218.           void selectComponent(Widget widget, XtPointer arg)    _p_r_o_t_e_c_t_e_d
  219.  
  220.  
  221.           This method is called by the component selection slider when the
  222.           slider is moved. It chooses the component (or channel) for display
  223.           by the histogram graph.
  224.  
  225.      sssseeeettttCCCCoooolllloooorrrr(((())))
  226.  
  227.           void setColor(const char* colorName)
  228.  
  229.  
  230.           This method set the drawing color to _c_o_l_o_r_N_a_m_e.
  231.  
  232.      sssseeeettttCCCCoooommmmppppoooonnnneeeennnntttt(((())))
  233.  
  234.           void setComponent(int c)
  235.  
  236.  
  237.           This method sets the selected component (or channel) to _c.
  238.  
  239.      sssseeeettttPPPPeeeerrrrcccceeeennnnttttaaaaggggeeee(((())))
  240.  
  241.           void setPercentage(Widget widget, XtPointer arg)    _p_r_o_t_e_c_t_e_d
  242.  
  243.  
  244.           This method is invoked when the percentage thumbwheel is modified.
  245.           It scales histogram such that the given percentage of pixels in the
  246.           ROI appears in the graph.
  247.  
  248.      sssseeeettttRRRRooooiiii(((())))
  249.  
  250.           void setRoi(ilRoi* roi, int xoffset, int yoffset)
  251.  
  252.  
  253.           This method sets the ROI and its offset in the source image for the
  254.           histogram graph.
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))   IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll   iiiillllVVVVkkkkHHHHiiiissssttttGGGGrrrraaaapppphhhh((((3333))))
  269.  
  270.  
  271.  
  272.      sssstttteeeeppppCCCCoooommmmppppoooonnnneeeennnntttt(((())))
  273.  
  274.           void stepComponent(Widget widget, parent arg)    _p_r_o_t_e_c_t_e_d
  275.  
  276.  
  277.           This method is called by the left and right component selection
  278.           arrows in the GUI. It decrements or increments the selected
  279.           component (or channel) number.
  280.  
  281. IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
  282.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm iiiillllVVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
  283.      className(), getImage(), getParent(), ilUpdateWidget(), setImage(),
  284.      setParent()
  285.  
  286.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
  287.      afterRealizeHook(), baseWidget(), className(), getResources(), hide(),
  288.      installDestroyHandler(), manage(), name(), okToQuit(), operator Widget(),
  289.      removeDestroyHandler(), setDefaultResources(), show(), unmanage(),
  290.      widgetDestroyed()
  291.  
  292.  
  293. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  294.      ilVkComponent, ilImgStat
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.